

import 'dart:io';

import 'package:flutter/cupertino.dart';

class PictureWall extends StatefulWidget {
  final File image;
  final String image1;
  const PictureWall({Key key, this.image, this.image1}) : super(key: key);

  @override
  _PictureWallState createState() => _PictureWallState();
}

class _PictureWallState extends State<PictureWall> {
  @override
  Widget build(BuildContext context) {
    return Container(
      width: 30,
      height: 30,
      child: Row(
        children: [
          SizedBox(width: 10,),
          widget.image != null ?
          Image.file(widget.image,width: 35,height: 35,fit: BoxFit.cover,) :
              Image.network('http://119.28.131.94:82' + widget.image1,width: 35,height: 35,fit: BoxFit.cover),
        ],
      ),
    );
  }
}
